#include <iostream>
using namespace std;
struct student
{
	int idnum;
	char name[10];
	int age;
	char department[20];
	float gpa;
};

void display(student* stu)
{
	cout << "IdNumber: " << (*stu).idnum << endl << "Name: " << (*stu).name << endl << "Age: " << (*stu).age << endl;
	cout << "Department: " << (*stu).department << endl << "Gpa: " << (*stu).gpa << endl;
}

int main()
{
	student s = {5422, "Tom", 20, "xinxi", 88.8};
	student* s1 = &s;
	display(s1);
	return 0;
}
